package com.itheima.homenwork.test01;

import java.io.FileReader;
import java.util.Properties;
import java.util.Set;

public class demo02 {
    public static void main() throws Exception {
        Properties pro = new Properties();
        pro.load(new FileReader("iphone.properties"));
        Set<String> keys = pro.stringPropertyNames();

        for (String k : keys) {
            String v = pro.getProperty(k);
            System.out.println(k+" "+ v);
        }
    }
}
